package com.digital.herbarium.Mapper;

import com.digital.herbarium.Entity.Image;
import com.digital.herbarium.Entity.Stat;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ImageMapper {

    void bachAdd(@Param("list") List<Image> list);

    List<Image> getImageInfo(Image image);


    void delImageInfo(@Param("ids") Long[] id);


    //    添加信息
    void addImageInfo(Image image);
    //编辑信息
    void editImageInfo(Image image);

    Integer getTotal(@Param("queryTime") String queryTime);

    List<Stat> getStatGroupByType();

    List<Stat> getTotalGroupByDate(@Param("startTime") String startTime,@Param("endTime") String endTime);
}
